/**
 * Created by Administrator on 2016/8/3.
 */
"use strict";
swan_pc.config(
    function($stateProvider) {
        $stateProvider
            .state('activity', {
                parent: 'site',
                url: '/activity',
                views: {
                    'content@': {
                        templateUrl: 'scripts/components/yue/activity/activity.html',
                        controller: 'ActivityController'
                    }
                }
            })
            .state('activitylist', {
                parent: 'activity',
                url: '/activitylist',
                views: {
                    'ActivityShow@activity': {
                        templateUrl: 'scripts/components/yue/activity/activitylist/activitylist.html',
                        controller: 'ActivityListController'
                    }
                }
            })
            .state('activitydetail', {
                parent: 'activity',
                url: '/activitydetail',
                views: {
                    'ActivityShow@activity': {
                        templateUrl: 'scripts/components/yue/activity/activitydetail/activitydetail.html',
                        controller: 'ActivityDetailController'
                    }
                }
            })
            .state('sessionDetail', {
                parent: 'activitydetail',
                url: '/session',
                views: {
                    'ActivityShow@activity': {
                        templateUrl: 'scripts/components/yue/activity/sessiondetail/sessiondetail.html',
                        controller: 'SessionDetailController'
                    }
                }
            })
    });
